Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

removed sudo from npm install and provides a check instead #178

Merged
merged 4 commits into from
Apr 10, 2015

Conversation

rctoris
Copy link
Contributor

@rctoris rctoris commented Apr 9, 2015

addresses #177

#!/bin/sh

# check for libcairo2
if [ -f /usr/include/cairo/cairo.h ]; then
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this approach works for other platforms e.g) redhat?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My thought was /usr/include is pretty standard for installing headers. I can add an or check for /usr/local/include/cairo/cairo.h as well that might be more robust. We can add locations as they come up if needed. If there are not other objections I think we should merge and do an initial release of this patch since I know of several cases blocking on the the sudo problem.

rctoris added a commit that referenced this pull request Apr 10, 2015
removed sudo from npm install and provides a check instead
@rctoris rctoris merged commit 2bb38df into develop Apr 10, 2015
@rctoris rctoris deleted the remove_sudo branch April 10, 2015 18:06
@jihoonl
Copy link
Member

jihoonl commented Apr 11, 2015

👍

k-aguete pushed a commit to k-aguete/roslibjs that referenced this pull request Oct 21, 2022
Error in console instead of throwing exception RobotWebTools#178

Since this is intended to be a warning, we can print an error to the console instead of throwing an exception, which causes script execution to halt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants